From a5265e89475eb34c73d19cec030dd7a12090fef4 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Wed, 8 Oct 2025 19:58:40 +0200 Subject: [PATCH] ibusCandidatePopup: Use click gesture to activate candidates Part-of: --- js/ui/ibusCandidatePopup.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/js/ui/ibusCandidatePopup.js b/js/ui/ibusCandidatePopup.js index 2b0d4c27c..eb185625f 100644 --- a/js/ui/ibusCandidatePopup.js +++ b/js/ui/ibusCandidatePopup.js @@ -48,10 +48,12 @@ const CandidateArea = GObject.registerClass({ this.add_child(box); const j = i; - box.connect('button-release-event', (actor, event) => { - this.emit('candidate-clicked', j, event.get_button(), event.get_state()); - return Clutter.EVENT_PROPAGATE; + const clickGesture = new Clutter.ClickGesture(); + clickGesture.connect('recognize', gesture => { + this.emit('candidate-clicked', j, gesture.get_button(), + gesture.get_state()); }); + box.add_action(clickGesture); } this._buttonBox = new St.BoxLayout({style_class: 'candidate-page-button-box'}); -- 2.39.5